Showing posts with label Tips and Tricks. Show all posts

Saturday, February 9, 2013

How to change your hostname



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting


After we have seen how to customize your terminal background, here is another tutorial for customizing your username or hostname. In this example i' am going to change the Backtrack default hostname to my cyber name.



To display your current hostname type this command:

root@bt:~# hostname 



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting





Now, to change the default hostname, type the following:


root@bt:~# shinobi





backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting






Let's see if it worked, so we need to close the terminal & open a new one:




backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting




However, if you reboot the system, this change will be lost. To fix that and make your new hostname permanent, we need to edit the "hostname" file in "etc":


root@bt:~# pico /etc/hostname



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting







backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting




All what is left now is to change the default hostname to the one you have just chosen, then press Ctrl+O and press "enter"to save the changes, then Ctrl+x to exit.


Hope you like it :-)




Read more

Monday, January 28, 2013

IDM for Linux !!

backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting



Everyone relies on the famous "apt-get" command to install  packages, or update their systems. Unfortunately "apt" only uses one single connection which makes the process quite slow.This is why many Linux users were looking for an alternative for Internet download manager or trying to run it with wine in vain.
The solution comes with a wonderful utility, which is in fact a script named "fast". This utility can be considered as the Linux IDM version. It allows multiple connections simultaneously and can boost your downloading speed to the max.

-First you need to download the script (clean) from here: http://www.mattparnell.com/linux/apt-fast/apt-fast.sh

-Uncompress the file with this command to make it executable:


root@bt:~# chmod +x apt-fast.sh

-Move it now to the user bin directory:



root@bt:~# mv apt-fast.sh /usr/bin/apt-fast.sh


Now, all what is left is to run "fast" instead of "get", for example:

root@bt:~#apt-fast update


root@bt:~#apt-fast install chromium-browser
Read more

Wednesday, January 23, 2013

Fixing metasploit 4.5.0 bt0 launch error

backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit



Backtrack 5 r3 users will face a frustrating problem after updating metasploit from 4.4.0 bt0 to the new 4.5.0 bt0 version. When a user type the usual command msfcosole, it won't start,and have just a blank screnn instead. Well, if you move to metasploit directory, you'll realize that the msf3 folder is empty.Another problem arises also when the user tries to update the svn, it won't also work, because the metasploit have move to "GIT" instead. How to fix this??

Well the answer is quite easy, and you don't even need to be an expert to fix that.

-If you move to the metasploit directory, you will notice that there is a zip file in the directory called msf3.zip !! All that we have to do is just unzip the file to the msf3 directory. Once done, we should be able to launch the msfconsole, BUT it won't work!!.And even if you are lucky and get the msfconsole displayed, you won't be able to run updates.

Why??? it is because the metasploit have moved to "GIT" 

To fix that we should first move to this directory:

root@bt:~# cd /opt/metasploit



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit



Next, type this command:

root@bt:~#rm -rf msf3



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit



Next, we need to clone the metasploit repository:

root@bt:~#git clone https://github.com/rapid7/metasploit-framework.git  msf3 



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit


This step may take a while, depending on your connection speed.The above command, will also allow updates to work the new way via "github". When the cloning is done, your terminal will look this way:


backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit



Now, let's try to open msfconsole:

root@bt:~#msfconsole



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit




Bingo !!!! it worked, so let's try to update the metasploit repository:


root@bt:~#msfupdate

backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit



As you can see, everything is working fine now and updates are channelled the new way with "github"
Read more

Saturday, January 5, 2013

How to have MATRIX displayed in terminal !!!!





backtrack, hacking, penetration testing, pentest, linux,

If you want to have a spicy terminal, you can have "matrix" displayed in the backgroung!! This is quite simple, all that you have to do is to install a small utility called "cmatrix". To get this feature enabled, just open a terminal and type

root@bt:~#apt-get install cmatrix

Then, if you want to display the matrix in your terminal, just type: cmatrix & you'll have a nice matrix animation with the default color: green.



hacking, backtrack 5, pentest, pentesting, ethical hacking


 But don't worry if you don't like green color !!You can have another one; the available colors are: green,red, blue, white, yellow, cyan, magenta and black. For example, if you want the matrix animation to be displayed in yellow you just type:

root@bt:~#cmatrix -C yellow




hacking, backtrack 5, pentest, pentesting, ethical hacking





Read more

Friday, January 4, 2013

How to make Backtrack run faster !!!!






root@bt:~#apt-get install preload

-This command will install the "preload" utility which monitor applications that users run, and by analyzing this data, it predicts what applications users may run, and fetches those binaries and their dependencies into memory for faster start up times.

root@bt:~#apt-get install bleachbit

-"Bleachbit" deletes unnecessary files to free valuable disk space, maintains privacy, and removes junk. It removes cache, internet history, temporary files, cookies and broken shortcuts.


root@bt:~#sudo add-apt-repository ppa:shnatsel/ zram

root@bt:~#sudo apt-get update

root@bt:~#sudo apt-get install zramswap-enabler

-"zram" makes a swap partition from the available free disk space and makes this partition run as an extra virtual ram.

Read more